package handlers;

import GUI.MainFrame;

public class SectionManager {
	MainFrame win;
	HeaderManager h;
	ListManager l;
	
	public SectionManager(MainFrame w) {
		win = w;
		h = new HeaderManager();
		l = new ListManager();
	}
	
	//TODO BtnEnabler
    public void btnEnabler(int ... btns) {
    	for(int btn : btns) {
    		win.getBtnX(btn).setEnabled(true);
    		win.getBtnX(btn).setForeground(java.awt.Color.WHITE);
    	}
    }
    
    //TODO Switcher
    public void changeSection() {
    	String section = win.getCurrentSection();
    	displayHeader(section);
    }
    
    //TODO Header
    public void setHeaderComps() {
    	h.footerSetter(win.getFooterLabels(), win.getFooterBtn());
    	h.headerSetter(win.getHeader());
    }
    public void displayHeader(String head) {
    	h.showHeader(head);
    	win.setTitle("Tiliches: " + head);
    }
}
